.class public Les/s9;
.super Ljava/lang/Object;
.source "DuVideoProcessor.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/s9$b;
    }
.end annotation


# instance fields
.field private a:Les/ja;

.field private b:Les/y9;

.field private c:Les/ia;

.field private d:Ljava/lang/String;

.field private e:Z

.field private f:Z

.field private g:Z

.field private h:Z

.field private i:Z

.field private j:Landroid/media/MediaFormat;

.field private k:Landroid/media/MediaFormat;

.field private l:Les/t9$a;

.field private m:Les/s9$b;


# direct methods
.method public constructor <init>(Ljava/lang/String;Les/ja$d;Les/y9$f;Les/ia$b;Les/f8;Les/t7;Les/aa;Z)V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/s9;->g:Z

    .line 3
    iput-boolean v0, p0, Les/s9;->h:Z

    .line 4
    iput-boolean v0, p0, Les/s9;->i:Z

    .line 5
    new-instance v0, Les/s9$a;

    invoke-direct {v0, p0}, Les/s9$a;-><init>(Les/s9;)V

    iput-object v0, p0, Les/s9;->l:Les/t9$a;

    if-eqz p7, :cond_1

    .line 6
    invoke-virtual {p7}, Les/aa;->b()I

    move-result v0

    iget v1, p3, Les/y9$f;->c:I

    if-ne v0, v1, :cond_0

    .line 7
    invoke-virtual {p7}, Les/aa;->a()I

    move-result v0

    iget v1, p3, Les/y9$f;->d:I

    if-ne v0, v1, :cond_0

    goto :goto_0

    .line 8
    :cond_0
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "Audio format error!"

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 9
    :cond_1
    :goto_0
    iput-object p1, p0, Les/s9;->d:Ljava/lang/String;

    if-eqz p4, :cond_2

    .line 10
    new-instance p2, Les/ia;

    invoke-direct {p2, p1, p4, p5, p6}, Les/ia;-><init>(Ljava/lang/String;Les/ia$b;Les/f8;Les/t7;)V

    iput-object p2, p0, Les/s9;->c:Les/ia;

    .line 11
    iget-object p4, p0, Les/s9;->l:Les/t9$a;

    invoke-virtual {p2, p4}, Les/t9;->a(Les/t9$a;)V

    goto :goto_1

    :cond_2
    if-eqz p2, :cond_3

    .line 12
    new-instance p4, Les/ja;

    invoke-direct {p4, p1, p2, p5, p6}, Les/ja;-><init>(Ljava/lang/String;Les/ja$d;Les/f8;Les/t7;)V

    iput-object p4, p0, Les/s9;->a:Les/ja;

    .line 13
    iget-object p2, p0, Les/s9;->l:Les/t9$a;

    invoke-virtual {p4, p2}, Les/t9;->a(Les/t9$a;)V

    .line 14
    :goto_1
    new-instance p2, Les/y9;

    invoke-direct {p2, p1, p3, p7, p8}, Les/y9;-><init>(Ljava/lang/String;Les/y9$f;Les/aa;Z)V

    iput-object p2, p0, Les/s9;->b:Les/y9;

    .line 15
    iget-object p1, p0, Les/s9;->l:Les/t9$a;

    invoke-virtual {p2, p1}, Les/t9;->a(Les/t9$a;)V

    return-void

    .line 16
    :cond_3
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "VideoProcessor and ImageProcessor are both null!"

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method static synthetic a(Les/s9;Landroid/media/MediaFormat;)Landroid/media/MediaFormat;
    .locals 0

    .line 3
    iput-object p1, p0, Les/s9;->j:Landroid/media/MediaFormat;

    return-object p1
.end method

.method static synthetic a(Les/s9;)Les/s9$b;
    .locals 0

    .line 1
    iget-object p0, p0, Les/s9;->m:Les/s9$b;

    return-object p0
.end method

.method static synthetic a(Les/s9;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Les/s9;->f:Z

    return p1
.end method

.method static synthetic b(Les/s9;Landroid/media/MediaFormat;)Landroid/media/MediaFormat;
    .locals 0

    .line 2
    iput-object p1, p0, Les/s9;->k:Landroid/media/MediaFormat;

    return-object p1
.end method

.method static synthetic b(Les/s9;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/s9;->e:Z

    return p0
.end method

.method static synthetic b(Les/s9;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Les/s9;->i:Z

    return p1
.end method

.method static synthetic c(Les/s9;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/s9;->f:Z

    return p0
.end method

.method static synthetic d(Les/s9;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/s9;->g:Z

    return p0
.end method

.method static synthetic e(Les/s9;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/s9;->h:Z

    return p0
.end method

.method static synthetic f(Les/s9;)Landroid/media/MediaFormat;
    .locals 0

    .line 1
    iget-object p0, p0, Les/s9;->j:Landroid/media/MediaFormat;

    return-object p0
.end method

.method static synthetic g(Les/s9;)Landroid/media/MediaFormat;
    .locals 0

    .line 1
    iget-object p0, p0, Les/s9;->k:Landroid/media/MediaFormat;

    return-object p0
.end method

.method static synthetic h(Les/s9;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/s9;->i:Z

    return p0
.end method


# virtual methods
.method public a()Landroid/graphics/Bitmap;
    .locals 1

    .line 11
    iget-object v0, p0, Les/s9;->a:Les/ja;

    if-eqz v0, :cond_0

    .line 12
    invoke-virtual {v0}, Les/ja;->f()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0

    .line 13
    :cond_0
    iget-object v0, p0, Les/s9;->c:Les/ia;

    if-eqz v0, :cond_1

    .line 14
    invoke-virtual {v0}, Les/ia;->f()Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0

    :cond_1
    const/4 v0, 0x0

    return-object v0
.end method

.method public declared-synchronized a(J)V
    .locals 1

    monitor-enter p0

    .line 4
    :try_start_0
    iget-object v0, p0, Les/s9;->a:Les/ja;

    if-eqz v0, :cond_0

    .line 5
    iget-object v0, p0, Les/s9;->a:Les/ja;

    invoke-virtual {v0, p1, p2}, Les/ja;->a(J)V

    .line 6
    :cond_0
    iget-object v0, p0, Les/s9;->b:Les/y9;

    if-eqz v0, :cond_1

    .line 7
    iget-object v0, p0, Les/s9;->b:Les/y9;

    invoke-virtual {v0, p1, p2}, Les/y9;->a(J)V

    .line 8
    :cond_1
    iget-object v0, p0, Les/s9;->c:Les/ia;

    if-eqz v0, :cond_2

    .line 9
    iget-object v0, p0, Les/s9;->c:Les/ia;

    invoke-virtual {v0, p1, p2}, Les/ia;->a(J)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 10
    :cond_2
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public a(Les/s9$b;)V
    .locals 0

    .line 15
    iput-object p1, p0, Les/s9;->m:Les/s9$b;

    return-void
.end method

.method public declared-synchronized b()Z
    .locals 1

    monitor-enter p0

    .line 4
    :try_start_0
    iget-boolean v0, p0, Les/s9;->e:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized c()Z
    .locals 1

    monitor-enter p0

    .line 2
    :try_start_0
    iget-boolean v0, p0, Les/s9;->f:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized d()Z
    .locals 4

    monitor-enter p0

    .line 2
    :try_start_0
    iget-object v0, p0, Les/s9;->a:Les/ja;

    if-nez v0, :cond_0

    iget-object v0, p0, Les/s9;->c:Les/ia;

    if-eqz v0, :cond_4

    :cond_0
    iget-object v0, p0, Les/s9;->b:Les/y9;

    if-eqz v0, :cond_4

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Les/s9;->g:Z

    .line 4
    iget-object v1, p0, Les/s9;->c:Les/ia;

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 5
    iget-object v1, p0, Les/s9;->c:Les/ia;

    invoke-virtual {v1}, Les/ia;->i()Z

    move-result v1

    iput-boolean v1, p0, Les/s9;->f:Z

    if-nez v1, :cond_3

    .line 6
    iput-boolean v2, p0, Les/s9;->g:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    monitor-exit p0

    return v2

    .line 8
    :cond_1
    :try_start_1
    iget-object v1, p0, Les/s9;->a:Les/ja;

    invoke-virtual {v1}, Les/ja;->j()Z

    move-result v1

    iput-boolean v1, p0, Les/s9;->f:Z

    if-nez v1, :cond_2

    .line 9
    iput-boolean v2, p0, Les/s9;->g:Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 10
    monitor-exit p0

    return v2

    .line 11
    :cond_2
    :try_start_2
    iget-object v1, p0, Les/s9;->b:Les/y9;

    invoke-virtual {v1}, Les/y9;->f()Les/y9$f;

    move-result-object v1

    iget-object v2, p0, Les/s9;->a:Les/ja;

    invoke-virtual {v2}, Les/ja;->g()Les/ja$d;

    move-result-object v2

    iget-wide v2, v2, Les/ja$d;->g:J

    iput-wide v2, v1, Les/y9$f;->a:J

    .line 12
    :cond_3
    iget-object v1, p0, Les/s9;->b:Les/y9;

    invoke-virtual {v1}, Les/y9;->g()Z

    move-result v1

    iput-boolean v1, p0, Les/s9;->e:Z

    .line 13
    iput-boolean v0, p0, Les/s9;->h:Z
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 14
    monitor-exit p0

    return v0

    .line 15
    :cond_4
    :try_start_3
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "DuVideoProcessor has been released!"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized e()V
    .locals 2

    monitor-enter p0

    const/4 v0, 0x0

    .line 2
    :try_start_0
    iput-boolean v0, p0, Les/s9;->g:Z

    .line 3
    iget-object v0, p0, Les/s9;->a:Les/ja;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Les/s9;->a:Les/ja;

    invoke-virtual {v0}, Les/ja;->e()V

    .line 5
    iget-object v0, p0, Les/s9;->a:Les/ja;

    invoke-virtual {v0}, Les/ja;->d()V

    .line 6
    iput-object v1, p0, Les/s9;->a:Les/ja;

    .line 7
    :cond_0
    iget-object v0, p0, Les/s9;->b:Les/y9;

    if-eqz v0, :cond_1

    .line 8
    iget-object v0, p0, Les/s9;->b:Les/y9;

    invoke-virtual {v0}, Les/y9;->e()V

    .line 9
    iget-object v0, p0, Les/s9;->b:Les/y9;

    invoke-virtual {v0}, Les/t9;->d()V

    .line 10
    iput-object v1, p0, Les/s9;->b:Les/y9;

    .line 11
    :cond_1
    iget-object v0, p0, Les/s9;->c:Les/ia;

    if-eqz v0, :cond_2

    .line 12
    iget-object v0, p0, Les/s9;->c:Les/ia;

    invoke-virtual {v0}, Les/ia;->e()V

    .line 13
    iget-object v0, p0, Les/s9;->c:Les/ia;

    invoke-virtual {v0}, Les/ia;->d()V

    .line 14
    iput-object v1, p0, Les/s9;->c:Les/ia;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 15
    :cond_2
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
